define(['durandal/system','./publisher','./subscriber'],function (system,publisher,subscriber) {
	return {
		publisher1:new publisher('publisher 1'),
		subscriber1:new subscriber('subscriber 1'),
		publisher2:new publisher('publisher 2'),
		subscriber2:new subscriber('subscriber 2'),
		activate: function () {
			system.log('1.生命周期 : 激活 : events')
		},
		binding: function () {
			system.log('2.生命周期 : 绑定中。。。 : events')
			return {
				cacheViews: false
			} 
		},
		bindingComplete: function () {
			system.log('3.生命周期 : 绑定完成 : events')
		},
		attached: function (view, parent) {
			system.log('4.生命周期 : 附加 : events')
		},
		compositionComplete: function (view) {
			system.log('5.生命周期 : 组合完成 : events')
		},
		detached: function (view) {
			system.log('6.生命周期 : 分离 : events')
		}
	}
})